package com.huluobo.a2201mvvm_imdemo.net;

import com.huluobo.a2201mvvm_imdemo.shop.GoodsBeanResult;
import com.huluobo.a2201mvvm_imdemo.shop.GoodsDetailBeanResult;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by LC on 2024/4/8.
 * 存放所有的接口地址,所有方法的返回值是一个Observable(被观察者)
 */
public interface ApiService {
    @GET("/goods/info")
    Observable<GoodsBeanResult> getGoodsList(@Query("category_id") int categoryId,
                                             @Query("currentPage") int currentPage, @Query("pageSize") int pageSize);

    @GET("/goods/detail")
    Observable<GoodsDetailBeanResult> getGoodsDetail(@Query("goods_id") int goodsId);
}
